<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="/include/taglibs.jsp" %>
<html>
<head>
    <%@include file="/include/header.html" %>
    <script type="text/javascript" src="${ctx}/appjs/ugs/tenantUgsLevelType.js"></script>
</head>

<script type="text/javascript">
    $('#topLink', window.parent.document).html(function (i, origText) {
        return '<br>' +
            '<ol class="breadcrumb">' +
            '<li class="breadcrumb-item">' +
            '<a href="">主页</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<a>会员管理</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<strong>编辑用户等级</strong>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<a href="javascript:window.history.back()"><i class="fa fa-times"></i> 返回</a>' +
            '</li>' +
            '</ol>';
    });

</script>

<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <div class="columns pull-left">
                        <h5 class="font-bold">编辑用户等级</h5>
                    </div>
                    <div class="ibox-tools">
                        <a class="close-link">
                            <i class="fa fa-times"></i>
                        </a>
                    </div>
                </div>

                <div class="ibox-content">
                    <form class="form-horizontal m-t layui-form" id="frmTenantUgsLevelType">
                        <input name="ugsLevelTypeId" id="ugsLevelTypeId" value="${tenantUgsLevelType.ugsLevelTypeId}"
                               type="hidden">
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">等级类型：</label>
                            <div class="col-sm-4">
                                <input type="text" class="form-control" readonly
                                       value="${tenantUgsLevelType.levelType}">
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">等级名称：</label>
                            <div class="col-sm-4">
                                <input type="text" class="form-control" id="levelTypeName" name="levelTypeName"
                                       value="${tenantUgsLevelType.levelTypeName}">
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">有效期：</label>
                            <div class="col-sm-4">
                                <div class="input-group m-b">
                                    <input type="text" class="form-control" name="expireDay" id="expireDay"
                                           placeholder="请输入有效期" value="${tenantUgsLevelType.expireDay}">
                                    <span class="input-group-addon">天</span>
                                </div>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">经验值要求：</label>
                            <div class="col-sm-2">
                                <input type="text" class="form-control" id="minValue" name="minValue"
                                       value="${tenantUgsLevelType.minValue}">
                            </div>
                            至
                            <div class="col-sm-2">
                                <input type="text" class="form-control" id="maxValue" name="maxValue"
                                       value="${tenantUgsLevelType.maxValue}">
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">保级值：</label>
                            <div class="col-sm-4">
                                <input type="text" class="form-control" name="keepValue" id="keepValue"
                                       placeholder="请输入保级值(最小经验和最大经验之间)" value="${tenantUgsLevelType.keepValue}">
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">服务费折扣(0.78~1)：</label>
                            <div class="col-sm-4">
                                <input type="text" class="form-control" name="discountPercent" id="discountPercent"
                                       placeholder="请输入0.78~1的服务费折扣" value="${tenantUgsLevelType.discountPercent}">
                            </div>
                        </div>

                        <div class="form-group">
                            <div class="col-sm-3 col-sm-offset-8 text-right">
                                <button type="submit" class="btn btn-primary">提交</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    editTenantUgsLevelType.init();
</script>
</body>
</html>
